﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;


namespace ExpenseSystem.Model
{
    [TableName("BAS_UNITGROUP")]
    public class UnitGroupModel:NormalModel
    {
        private string _code;
        private string _name;
        private int _accuracy;

        public virtual string Code
        {
            get { return _code; }
            set
            {
                if (_code == value)
                    return;
                _code = value;
                if (!PropertyUpdated.Contains("Code"))
                    PropertyUpdated.Add("Code");
            }
        }
        public virtual int Accuracy
        {
            get { return _accuracy; }
            set
            {
                if (_accuracy == value)
                    return;
                _accuracy = value;
                if (!PropertyUpdated.Contains("Accuracy"))
                    PropertyUpdated.Add("Accuracy");
            }
        }
        public virtual string Name
        {
            get { return _name; }
            set
            {
                if (_name == value)
                    return;
                _name = value;
                if (!PropertyUpdated.Contains("Name"))
                    PropertyUpdated.Add("Name");
            }
        }
    }
}
